<legend>Detail Artikel</legend>
<fieldset>
	<b><?=$post_title?></b> - <i><?=$datecreate?></i> <span class="pict" style="float:right;"><a id="publish" href="#" title="Ubah Status Artikel"><?=$publish_status?></a></span> 
	<span class="pict" style="float:right; padding-right:50px;"><?=$pic?></span>
	<br /><br />
	<!--<img src="<?=base_url()?>assets/uploads/thumb.php?src=<?=$pic?>&x=150&y=150" class="thumb"> -->
	<?=$post_content?>
	<br />
	<br />
</fieldset>

<script>
	var id = "<?=$stateid?>";
	var status = "<?=$status_artikel?>";
	var url = "<?=$base_url?>";
	$('#publish').click(function(){
		$.post(url+'ctrlpnl/artikel/publishartikel/',{ID:id, STAT:status}, function(resp){
			if(resp == 1){
				location.reload();
			}else{
				alert('Gagal Mengubah Status Artikel');
			}
		});
	});

</script>